package com.chunayev.numerology.gui.action;

import com.chunayev.numerology.domain.PositionSummary;

/**
 * @author Sergey Chunayev
 */
public abstract class AbstractTokenDeleteFromSetAction extends
        AbstractTokenDeleteAction implements ModifiedSetProvider {
    
    /**
     * 
     */
    private static final long serialVersionUID = 3804628731922489516L;
    
    /**
     * @param keyName
     * @param mnemonicKey
     */
    public AbstractTokenDeleteFromSetAction(final String keyName,
            final int mnemonicKey) {
        super(keyName, mnemonicKey);
    }
    
    /*
     * (non-Javadoc)
     * @see
     * com.chunayev.numerology.gui.action.AbstractTokenAction#modifyPosition(chunayev
     * .numerology.domain.PositionSummary)
     */
    @Override
    public void modifyPosition(final PositionSummary positionSummary) {
        getModifiedSet(positionSummary).remove(
                getSummaryTokenChangeNotifier().getToken());
    }
    
}
